/// Author: QP
/// Version: 1.0
/// Date:2021/07/01
/// 入院信息章节表
Class HCC.SQL.Document.AdmissionInformation Extends (%Persistent, %XML.Adaptor, HCC.SQL.Base) [ CompileAfter = (HCC.SQL.Base, HCC.SQL.Document) ]
{

Parameter SectionCode;

Parameter SectionName = "入院信息";

Parameter SectionCodeSystemOID;

Parameter SectionCodeSystem;

/// 文档编号 (同时作为Idkey)
Property DocumentNo As %String(XMLPROJECTION = "NONE");

Index IdDocNo On DocumentNo [ IdKey, Unique ];

/// 建立与HCC.SQL.Document.Header的外键
ForeignKey FKDocument(DocumentNo) References HCC.SQL.Document(IdKey);

/// 入院原因描述
Property admitReason As WS.DE.DE051005300 [ SqlFieldName = admit_rsn ];

/// 入院途径代码
Property route As WS.DE.DE060033900 [ SqlFieldName = route ];

/// 入病房方式描述
Property admitMode As WS.DE.DE060023700 [ SqlFieldName = admit_mode ];


}
